//导入request.js请求工具
import request from '@/utils/request.js'

//添加评论
export const addCommentService = (data) => {
    return request.post('/addComment',data)
}

//获取评论信息列表
export const getCommentsService = (data) => {
    return request.get(`/getComments`,data)
}

//点赞
export const addLikeService = (data) => {
    return request.put(`/like`, data)
}

//取消点赞
export  const cancelLikeService = (data) => {
    return request.delete(`/cancel_like`)
}